package com.woniu.sharepark.leasesystem.common.dao;

import com.woniu.sharepark.leasesystem.common.pojo.IndentForm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 流水接口
* @title IndentFormDAO
* @return * @return: null
* @author DELL
* @date 2019/6/8 23:34
**/
public interface IndentFormDAO {
    /**
    * 删除
    * @title deleteByPrimaryKey
    * @param ifId
    * @return int
    * @author DELL
    * @date 2019/6/9 0:23
    **/

    int deleteByPrimaryKey(Integer ifId);

    /**
    *  插入
    * @title insert
    * @param record
    * @return int
    * @author DELL
    * @date 2019/6/9 0:24
    **/

    int insert(IndentForm record);

    /**
    * 动态插入
    * @title insertSelective
    * @param record
    * @return int
    * @author DELL
    * @date 2019/6/9 0:24
    **/

    int insertSelective(IndentForm record);

    /**
    * 查找
    * @title selectByPrimaryKey
    * @param ifId
    * @return com.woniu.sharepark.leasesystem.common.pojo.IndentForm
    * @author DELL
    * @date 2019/6/9 0:24
    **/

    IndentForm selectByPrimaryKey(Integer ifId);

    /**
    * 动态修改
    * @title updateByPrimaryKeySelective
    * @param record
    * @return int
    * @author DELL
    * @date 2019/6/9 0:24
    **/

    int updateByPrimaryKeySelective(IndentForm record);

    /**
    * 修改
    * @title updateByPrimaryKey
    * @param record
    * @return int
    * @author DELL
    * @date 2019/6/9 0:25
    **/

    int updateByPrimaryKey(IndentForm record);

    /**
    * 修改流水号状态
    * @title updateStateByNumber
    * @param ifStatus, out_trade_no
    * @return void
    * @author DELLs
    * @date 2019/6/10 15:05
    **/

    void updateStateByNumber(@Param("ifStatus") String ifStatus, @Param("out_trade_no") String out_trade_no);

    /**
    * 订单编号查询支付人Id
    * @title selectDraweeBy
    * @param out_trade_no
    * @return java.lang.Integer
    * @author DELL
    * @date 2019/6/10 15:32
    **/

    Integer selectDraweeByNumber(String out_trade_no);

    /**
    * 按uid查找订单信息
    * @title selectIndentFormByUid
    * @param uId
    * @return java.util.List<com.woniu.sharepark.leasesystem.common.pojo.IndentForm>
    * @author DELL
    * @date 2019/6/20 10:18
    **/

    List<IndentForm> selectIndentFormByUid(Integer uId);
}